package com.cskaoyan.bean.admin.goods.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Classname CatAndBrandVo
 * @Description
 * @Date 2021/8/13 14:37
 * @Author : xujun
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CatAndBrandVo {

    List<BrandInnerVo> brandList;
    List<CategoryInnerVo> categoryList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class BrandInnerVo {

        Integer value;
        String label;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CategoryInnerVo {   // 一级类目

        String label;
        Integer value;
        List<ChildrenVo> children;

        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        public static class ChildrenVo {    // 二级类目

            Integer value;
            String label;

        }

    }

}
